//
//  LocalizeManager.m
//  Tracker_houshijing_iOS
//
//  Created by luffy on 15/10/19.
//  Copyright © 2015年 Jimi. All rights reserved.
//

#import "LocalizeManager.h"

#define CURR_LANG ([[NSLocale preferredLanguages] objectAtIndex:0])

@implementation LocalizeManager

+ (NSString *)DNSLocalizedString:(NSString *)key andComment:(NSString*)comment{
    NSLog(@"zhongwen%@",CURR_LANG);//zh-Hans-CN
    NSString * s = @"";

    NSString * path = [[NSBundle mainBundle] pathForResource:@"en" ofType:@"lproj"];
    NSBundle * languageBundle = [NSBundle bundleWithPath:path];
    s = [languageBundle localizedStringForKey:key value:@"" table:nil];
    
    return s;
}

@end
